﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinformToolkit.Navigations
{
    /// <summary>
    /// 菜单内容控件生命周期钩子
    /// </summary>
    public interface IContentLifetimeHook
    {
        /// <summary>
        /// 当页面第一次被创建的时候触发
        /// </summary>
        void OnInitialize();

        /// <summary>
        /// 当页面被显示到界面之后触发
        /// </summary>
        void OnLoaded();

        /// <summary>
        /// 当页面从界面上移除之后触发
        /// </summary>
        void OnUnload();
    }
}
